<?php

// include function files for this application
require_once('paperclip_sc_fns.php');
session_start();

do_html_header("Edit category");
display_shopping_menu($_SESSION['cat_array']);
display_cart_tool();
echo "<div id=\"right-area\">";
if (check_admin_user()) {
	if ($catname = get_category_name($_GET['catid'])) {
		$catid = $_GET['catid'];
		$cat = compact('catname', 'catid');
		display_category_form($cat);
	} else {
		echo "<p>Could not retrieve category details.</p>";
	}
} else {
	echo "<p>You are not authorized to enter the administration area.</p>";
}
do_html_footer();


?>
